{"ast":null,"code":"import { initZoomMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken, PresetColors } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nimport getArrowStyle from '../../style/placementArrow';\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    popoverBg,\n    popoverColor,\n    width,\n    fontWeightStrong,\n    popoverPadding,\n    boxShadowSecondary,\n    colorTextHeading,\n    borderRadiusLG: borderRadius,\n    zIndexPopup,\n    marginXS,\n    colorBgElevated\n  } = token;\n  return [{\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: 0,\n      // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n      left: {\n        _skip_check_: true,\n        value: 0\n      },\n      zIndex: zIndexPopup,\n      fontWeight: 'normal',\n      whiteSpace: 'normal',\n      textAlign: 'start',\n      cursor: 'auto',\n      userSelect: 'text',\n      '--antd-arrow-background-color': colorBgElevated,\n      '&-rtl': {\n        direction: 'rtl'\n      },\n      '&-hidden': {\n        display: 'none'\n      },\n      [`${componentCls}-content`]: {\n        position: 'relative'\n      },\n      [`${componentCls}-inner`]: {\n        backgroundColor: popoverBg,\n        backgroundClip: 'padding-box',\n        borderRadius,\n        boxShadow: boxShadowSecondary,\n        padding: popoverPadding\n      },\n      [`${componentCls}-title`]: {\n        minWidth: width,\n        marginBottom: marginXS,\n        color: colorTextHeading,\n        fontWeight: fontWeightStrong\n      },\n      [`${componentCls}-inner-content`]: {\n        color: popoverColor\n      }\n    })\n  },\n  // Arrow Style\n  getArrowStyle(token, {\n    colorBg: 'var(--antd-arrow-background-color)'\n  }),\n  // Pure Render\n  {\n    [`${componentCls}-pure`]: {\n      position: 'relative',\n      maxWidth: 'none',\n      [`${componentCls}-content`]: {\n        display: 'inline-block'\n      }\n    }\n  }];\n};\nconst genColorStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: PresetColors.map(colorKey => {\n      const lightColor = token[`${colorKey}-6`];\n      return {\n        [`&${componentCls}-${colorKey}`]: {\n          '--antd-arrow-background-color': lightColor,\n          [`${componentCls}-inner`]: {\n            backgroundColor: lightColor\n          },\n          [`${componentCls}-arrow`]: {\n            background: 'transparent'\n          }\n        }\n      };\n    })\n  };\n};\nconst genWireframeStyle = token => {\n  const {\n    componentCls,\n    lineWidth,\n    lineType,\n    colorSplit,\n    paddingSM,\n    controlHeight,\n    fontSize,\n    lineHeight,\n    padding\n  } = token;\n  const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);\n  const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n  const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n  const popoverPaddingHorizontal = padding;\n  return {\n    [componentCls]: {\n      [`${componentCls}-inner`]: {\n        padding: 0\n      },\n      [`${componentCls}-title`]: {\n        margin: 0,\n        padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,\n        borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`\n      },\n      [`${componentCls}-inner-content`]: {\n        padding: `${paddingSM}px ${popoverPaddingHorizontal}px`\n      }\n    }\n  };\n};\nexport default genComponentStyleHook('Popover', token => {\n  const {\n    colorBgElevated,\n    colorText,\n    wireframe\n  } = token;\n  const popoverToken = mergeToken(token, {\n    popoverBg: colorBgElevated,\n    popoverColor: colorText,\n    popoverPadding: 12 // Fixed Value\n  });\n\n  return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, _ref => {\n  let {\n    zIndexPopupBase\n  } = _ref;\n  return {\n    zIndexPopup: zIndexPopupBase + 30,\n    width: 177\n  };\n});","map":{"version":3,"names":["initZoomMotion","genComponentStyleHook","mergeToken","PresetColors","resetComponent","getArrowStyle","genBaseStyle","token","componentCls","popoverBg","popoverColor","width","fontWeightStrong","popoverPadding","boxShadowSecondary","colorTextHeading","borderRadiusLG","borderRadius","zIndexPopup","marginXS","colorBgElevated","Object","assign","position","top","left","_skip_check_","value","zIndex","fontWeight","whiteSpace","textAlign","cursor","userSelect","direction","display","backgroundColor","backgroundClip","boxShadow","padding","minWidth","marginBottom","color","colorBg","maxWidth","genColorStyle","map","colorKey","lightColor","background","genWireframeStyle","lineWidth","lineType","colorSplit","paddingSM","controlHeight","fontSize","lineHeight","titlePaddingBlockDist","Math","round","popoverTitlePaddingBlockTop","popoverTitlePaddingBlockBottom","popoverPaddingHorizontal","margin","borderBottom","colorText","wireframe","popoverToken","_ref","zIndexPopupBase"],"sources":["/data/messenger.client/node_modules/antd/es/popover/style/index.js"],"sourcesContent":["import { initZoomMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken, PresetColors } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nimport getArrowStyle from '../../style/placementArrow';\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    popoverBg,\n    popoverColor,\n    width,\n    fontWeightStrong,\n    popoverPadding,\n    boxShadowSecondary,\n    colorTextHeading,\n    borderRadiusLG: borderRadius,\n    zIndexPopup,\n    marginXS,\n    colorBgElevated\n  } = token;\n  return [{\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: 0,\n      // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n      left: {\n        _skip_check_: true,\n        value: 0\n      },\n      zIndex: zIndexPopup,\n      fontWeight: 'normal',\n      whiteSpace: 'normal',\n      textAlign: 'start',\n      cursor: 'auto',\n      userSelect: 'text',\n      '--antd-arrow-background-color': colorBgElevated,\n      '&-rtl': {\n        direction: 'rtl'\n      },\n      '&-hidden': {\n        display: 'none'\n      },\n      [`${componentCls}-content`]: {\n        position: 'relative'\n      },\n      [`${componentCls}-inner`]: {\n        backgroundColor: popoverBg,\n        backgroundClip: 'padding-box',\n        borderRadius,\n        boxShadow: boxShadowSecondary,\n        padding: popoverPadding\n      },\n      [`${componentCls}-title`]: {\n        minWidth: width,\n        marginBottom: marginXS,\n        color: colorTextHeading,\n        fontWeight: fontWeightStrong\n      },\n      [`${componentCls}-inner-content`]: {\n        color: popoverColor\n      }\n    })\n  },\n  // Arrow Style\n  getArrowStyle(token, {\n    colorBg: 'var(--antd-arrow-background-color)'\n  }),\n  // Pure Render\n  {\n    [`${componentCls}-pure`]: {\n      position: 'relative',\n      maxWidth: 'none',\n      [`${componentCls}-content`]: {\n        display: 'inline-block'\n      }\n    }\n  }];\n};\nconst genColorStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: PresetColors.map(colorKey => {\n      const lightColor = token[`${colorKey}-6`];\n      return {\n        [`&${componentCls}-${colorKey}`]: {\n          '--antd-arrow-background-color': lightColor,\n          [`${componentCls}-inner`]: {\n            backgroundColor: lightColor\n          },\n          [`${componentCls}-arrow`]: {\n            background: 'transparent'\n          }\n        }\n      };\n    })\n  };\n};\nconst genWireframeStyle = token => {\n  const {\n    componentCls,\n    lineWidth,\n    lineType,\n    colorSplit,\n    paddingSM,\n    controlHeight,\n    fontSize,\n    lineHeight,\n    padding\n  } = token;\n  const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);\n  const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n  const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n  const popoverPaddingHorizontal = padding;\n  return {\n    [componentCls]: {\n      [`${componentCls}-inner`]: {\n        padding: 0\n      },\n      [`${componentCls}-title`]: {\n        margin: 0,\n        padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,\n        borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`\n      },\n      [`${componentCls}-inner-content`]: {\n        padding: `${paddingSM}px ${popoverPaddingHorizontal}px`\n      }\n    }\n  };\n};\nexport default genComponentStyleHook('Popover', token => {\n  const {\n    colorBgElevated,\n    colorText,\n    wireframe\n  } = token;\n  const popoverToken = mergeToken(token, {\n    popoverBg: colorBgElevated,\n    popoverColor: colorText,\n    popoverPadding: 12 // Fixed Value\n  });\n\n  return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, _ref => {\n  let {\n    zIndexPopupBase\n  } = _ref;\n  return {\n    zIndexPopup: zIndexPopupBase + 30,\n    width: 177\n  };\n});"],"mappings":"AAAA,SAASA,cAAc,QAAQ,oBAAoB;AACnD,SAASC,qBAAqB,EAAEC,UAAU,EAAEC,YAAY,QAAQ,sBAAsB;AACtF,SAASC,cAAc,QAAQ,aAAa;AAC5C,OAAOC,aAAa,MAAM,4BAA4B;AACtD,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IACJC,YAAY;IACZC,SAAS;IACTC,YAAY;IACZC,KAAK;IACLC,gBAAgB;IAChBC,cAAc;IACdC,kBAAkB;IAClBC,gBAAgB;IAChBC,cAAc,EAAEC,YAAY;IAC5BC,WAAW;IACXC,QAAQ;IACRC;EACF,CAAC,GAAGb,KAAK;EACT,OAAO,CAAC;IACN,CAACC,YAAY,GAAGa,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAElB,cAAc,CAACG,KAAK,CAAC,CAAC,EAAE;MACtEgB,QAAQ,EAAE,UAAU;MACpBC,GAAG,EAAE,CAAC;MACN;MACAC,IAAI,EAAE;QACJC,YAAY,EAAE,IAAI;QAClBC,KAAK,EAAE;MACT,CAAC;MACDC,MAAM,EAAEV,WAAW;MACnBW,UAAU,EAAE,QAAQ;MACpBC,UAAU,EAAE,QAAQ;MACpBC,SAAS,EAAE,OAAO;MAClBC,MAAM,EAAE,MAAM;MACdC,UAAU,EAAE,MAAM;MAClB,+BAA+B,EAAEb,eAAe;MAChD,OAAO,EAAE;QACPc,SAAS,EAAE;MACb,CAAC;MACD,UAAU,EAAE;QACVC,OAAO,EAAE;MACX,CAAC;MACD,CAAE,GAAE3B,YAAa,UAAS,G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